module.exports ={
    checkLogin :function(req,res,next){
        if(!req.session.user){
           
            return res.redirect('/signin');
        }
        next();
    },

    checkNotLogin: function(req,res,next){
        if (req.session.user) {
           
            return res.redirect('back');
        }

        next();
    }
};